<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .box1{
            display: inline;
            background: red;
        }
        .link_1{
            display: block;
            background: green;
        }
    </style>
</head>
<body>
    <div class="box1">第一个div</div>
    <div class="box2">第二个div</div>
    <a href="#" class="link_1">这是第一个链接</a>
    <a href="#" class="link_2">这是第二个链接</a>
</body>
</html>